package javase_class_250909;

/**
 * ClassName: TestEnum
 * Package: javase_class_250909
 * Description:
 *
 * @Author harkjeans
 * @Create 2025/9/9 9:04
 * @Version 1.0
 */
public class TestEnum {
    public static void main(String[] args) {
        // 使用
        Planet earth = Planet.EARTH;
        earth.getMass();
        double massOnEarth = earth.surfaceWeight(80); // 计算80kg在地球上的重量
        System.out.println(massOnEarth);

    }
}
